package cn.xyfmzmy.mybatis;

import java.sql.*;

public class Main {

    public static void main(String[] args) {
        MySqlSessionFactory mySqlSessionFactory = new MySqlSessionFactory();
        UserMapper userMapper = mySqlSessionFactory.getMapper(UserMapper.class);
        System.out.println(userMapper.selectById(2));
        System.out.println( userMapper.selectByName("tom"));
        System.out.println(userMapper.selectByNameAndAge("tom",11));

    }


}
